package com.mi.soul.windows.damo;

import com.develop.jawin.COMException;

import java.io.File;
import java.io.IOException;

/**
 * @Auth yaozhongjie
 * @Date 2019/6/25 11:22
 **/
public class Jdm {
//    private static String PATH_BMP = new File("").getAbsolutePath() + "/src/main/resources/bmp/";
//    private static String PATH_STR = new File("").getAbsolutePath() + "/src/main/resources/str/";

//    public static void main(String[] args) throws COMException, InterruptedException, IOException {

//        JdmUtil.setLibPath();
//        Idmsoft dm = new Idmsoft("dm.dmsoft");
//        String ver = dm.Ver();
//        System.out.println(ver);
//        int hwnd = dm.FindWindow("地下城与勇士", "地下城与勇士");
//        int hwnd = dm.FindWindow("Notepad", "aaa.txt - 记事本");
//        dm.SetWindowSize(hwnd, 1200, 700);
//        dm.BindWindow(hwnd, "dx", "normal", "normal", 1);
//        dm.BindWindow(hwnd, "normal", "normal", "normal", 1);
//        dm.SetWindowState(hwnd, 12);
//        dm.MoveWindow(hwnd, 0, 0);
//        dm.MoveTo(50, 50);
//        sleep(3);


//    }

//    private static void sleep(Object second) {
//        Double v = Double.parseDouble(second.toString()) * 1000;
//        try {
//            Thread.sleep(v.longValue());
//        } catch (InterruptedException e) {
//            e.printStackTrace();
//        }
//    }


}
